package behavioral_pattern.observer_pattern;

import behavioral_pattern.observer_pattern.concrete_observer.ConcreteObserverA;
import behavioral_pattern.observer_pattern.concrete_observer.ConcreteObserverB;
import behavioral_pattern.observer_pattern.concrete_subject.ConcreteSubjectA;
import behavioral_pattern.observer_pattern.observer.Observer;
import behavioral_pattern.observer_pattern.subject.Subject;

public class Test {
    public static void main(String[] args) {
        Subject subject = new ConcreteSubjectA();
        Observer observer = new ConcreteObserverA();
        Observer observer1 = new ConcreteObserverB();
        subject.add(observer);
        subject.add(observer1);
        subject.setState(1);


    }
}
